#include<stdio.h>
int ret(int arr[], int n)
{
	for (int i = 0; i < 10; i++)
	{
		if (n > arr[9])
			arr[10] = n;
		else if (n > arr[i] && n < arr[i + 1])
		{
			for (int m = 9; m >= i + 1; m--)
			{
				arr[m + 1] = arr[m];
			}
			arr[i + 1] = n;
		}
	}
	for (int k = 0; k < 11; k++)
		printf("%d ", arr[k]);
}
	int main( )
	{
		int arr[13] = { 1,3,5,7,9,11,12,13,14,15,16,17,18 };
		int n = 0;
		scanf("%d", &n);
		ret(arr, n);
	}
